/* =========================
   🔹 Base Styling (Common)
========================= */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #50004b;
    margin: 0;
    padding: 0;
}

.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1em 2em;
    background: whitesmoke;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
}

.header-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 3em;
    max-width: 100%;
}

.header-title-text {
    flex-grow: 1;
    text-align: center;
    padding: 0.5em;
}

.header-title-text h1 {
    font-size: 1.5em;
    color: #50004b;
    margin: 0.2em 0;
}

.header-title-text p {
    font-size: 1em;
    color: #777;
    margin: 0;
}

/* =========================
   🔹 Second Header
========================= */
.second-header {
    text-align: center;
    background: #50004b;
    color: white;
    padding: 2em 1em;
}

.second-header h1 {
    font-size: 2em;
    margin: 0;
}

.second-header p {
    font-size: 1.2em;
}

/* =========================
   🔹 Category Section
========================= */
.category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    padding: 3em;
    margin: 0 auto;
}

.category {
    width: 100%;
    max-width: 22em;
    padding: 1.5em;
    background: white;
    text-align: center;
    transition: all 0.3s ease;
}

.category:hover {
    transform: translateY(-0.3em);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background: #d5980a;
}

.category img {
    width: 100%;
    height: 10em;
    border-radius: 0.75em;
    object-fit: cover;
}

.category h3 {
    color: #50004b;
    margin-top: 1em;
    font-size: 1.4em;
}

.category p {
    color: #666;
    font-size: 1em;
    padding: 0 0.5em;
}

.category:hover p {
    color: black;
    font-size: 0.95em;
}

.other-input {
    display: none;
    padding: 0.5em;
    margin-top: 0.3em;
    border: 1px solid #ccc;
    border-radius: 0.5em;
    width: 100%;
}

/* =========================
   🔹 Modal Styling
========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
}

.modal-content1,
.modal-content-details {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    margin: 1em auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-content-details form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    text-align: left;
}

.modal-content-details label {
    font-weight: bold;
    color: #50004b;
}

.modal-content-details input,
.modal-content-details select,
.modal-content-details textarea {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ccc;
    border-radius: 0.5em;
    font-size: 1em;
    background: #f9f9f9;
}

.modal-content-details select {
    appearance: none;
    background: white url('data:image/svg+xml;utf8,<svg fill="%2350004b" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5H7z"/></svg>') no-repeat right 1em center;
    background-size: 1em;
    cursor: pointer;
}

.btn {
    background: #d5980a;
    color: white;
    border: none;
    padding: 0.75em 1.25em;
    font-size: 1em;
    border-radius: 0.5em;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.btn:hover {
    background: #c08708;
}

.close {
    position: absolute;
    top: 0.5em;
    right: 1em;
    font-size: 1.5em;
    cursor: pointer;
    color: #50004b;
}

.close:hover {
    color: #d5980a;
}

/* =========================
   🔹 Checkbox Group
========================= */
.checkbox-group-container {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0.5em 0;
}

.checkbox-group-container label {
    display: flex;
    align-items: center;
    margin: 0.5em 0;
    font-size: 1em;
    cursor: pointer;
    color: #333;
}

.checkbox-group-container input[type="checkbox"] {
    margin-right: 0.5em;
    accent-color: #50004b;
}

.example-text {
    color: #50004b !important;
    font-size: 0.9em;
}

/* =========================
   🔹 Mobile View (≤768px)
========================= */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        width: 100%;
    }

    .header-title-text h1 {
        font-size: 1.3em;
        text-align: center;
    }

    .header-title-text p,
    .site-header h1,
    .site-header p {
        font-size: 0.95em;
        text-align: center;
    }

    .logo img {
        margin: 0 auto;
        display: block;
    }

    .second-header h1 {
        font-size: 1.6em;
        text-align: center;
    }

    .second-header p {
        font-size: 1em;
        text-align: center;
    }

    .category-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.5em;
        gap: 1.5em;
        width: 100%;
    }

    .category {
        width: 90%;
    }

    .category h3 {
        font-size: 1.2em;
    }

    .category p {
        font-size: 0.9em;
    }

    .modal-content1,
    .modal-content-details {
        width: 90%;
        padding: 1.5em;
    }

    .btn {
        font-size: 1em;
        max-width: 300px;
        margin: 1em auto 0;
        display: block;
    }

    .checkbox-group-container label,
    .modal-content-details input,
    .modal-content-details select,
    .modal-content-details textarea {
        font-size: 0.9em;
    }

    input, select, textarea {
        font-size: 16px;
    }
}

/* =========================
   🔹 Desktop View (>768px)
========================= */
@media (min-width: 769px) {
    .category-container {
        flex-direction: row;
        justify-content: center;
        gap: 2em;
        padding: 3em;
    }

    .category {
        width: 18em;
    }

    .logo img {
        margin-left: 2em;
    }
}
